/*package com.example.flying_personnel_management_system.controller;

import com.alibaba.fastjson.JSON;
import com.example.flying_personnel_management_system.services.AttendanceTextServiceDaoImpNG;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class AttendanceControllerTextNG {
    @Qualifier("attendanceTextServiceDaoImpNG")
    @Autowired
    AttendanceTextServiceDaoImpNG attendanceTextServiceDaoImpNG;

    @RequestMapping(path = "/st", method = RequestMethod.POST, produces = "text/plain;charset=UTF-8")
    @ResponseBody
    public String select_text() {
        System.out.println(JSON.toJSONString(attendanceTextServiceDaoImpNG.select_attendance()));
        return JSON.toJSONString(attendanceTextServiceDaoImpNG.select_attendance());
    }

    @RequestMapping(path = "/st1")
    public String select_text1(Model model) {
        model.addAttribute("msg", attendanceTextServiceDaoImpNG.select_attendance().toJSONString());
        return "text";
    }


}*/
